home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
8434
/
8434.xpi
/
chrome
/
content
/
commonOverlay.js
< prev
next >
Wrap
Text File
|
2009-11-11
|
1KB
|
31 lines
var googleredesignedCommonOverlay = {
addBlank:function () {
googleredesignedCommon.add("");
},
clearMenu:function (event) {
var popup = event.target;
while (popup.hasChildNodes()) {
popup.removeChild(popup.firstChild);
}
},
handleStatusClick:function (event) {
if (event.target.id == "googleredesigned-panel" || event.target.id == "googleredesigned-panel-prism") {
if (event.button == 2) {
event.target.firstChild.showPopup();
} else if (event.button == 1) {
googleredesignedCommonOverlay.openManageStyles();
}
}
},
openManageStyles:function () {
var windowName = "googleredesigned";
var windowsMediator = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);
var win = windowsMediator.getMostRecentWindow(windowName);
if (win) {
win.focus();
} else {
openDialog("chrome://googleredesigned/content/manage.xul", windowName, "chrome,resizable,dialog=no,centerscreen");
}
}
}